import request from '@/utils/request'

export default {

  /**
   * 新增主办方
   * @param data
   */
  addOrganizer: (data) => {
    return request({
      url: '/organizer/new',
      method: 'post',
      data
    })
  },

  /**
   * 修改主办方
   * @param data
   */
  updateOrganizer: (data) => {
    return request({
      url: '/organizer/update',
      method: 'post',
      data
    })
  },

  updateStatus: (data) => {
    return request({
      url: '/organizer/updatebizstatus',
      method: 'post',
      data
    })
  },
  /**
   * 主办方列表
   * @param data
   */
  listOrganizers: (data) => {
    return request({
      url: '/organizer/list',
      method: 'post',
      data
    })
  },

  matchOrganizers: (data) => {
    return request({
      url: '/organizer/all/match',
      method: 'post',
      data
    })
  },

  zxwOrganizers: (data) => {
    return request({
      url: '/organizer/all/zxw',
      method: 'post',
      data
    })
  },

  /**
   * 删除省份
   * @param data
   */
  deleteOrganizer: (data) => {
    return request({
      url: '/organizer/delete',
      method: 'post',
      data
    })
  },

  updateManage: (data) => {
    return request({
      url: '/organizer/updatemanage',
      method: 'post',
      data
    })
  },
}
